<?php

namespace app\controller\v1\api;

use app\BaseController;
use app\common\Send;
use think\App;
use think\Request;
use app\service\ConfigService;
class SysConfig extends BaseController
{
    use  Send;
    protected $configService;
    public function __construct(App $app, ConfigService $configService)
    {
        parent::__construct($app);
        $this->configService = $configService;
    }

    public function index(Request $request)
    {
        $params = $request->param();
        $result = $this->configService->list($params);
        return self::success($result);
    }
}
